<%@page contentType="text/html" pageEncoding="UTF-8"%>  
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<table class="table table-striped table-hover col-xs-12 col-sm-12 col-md-12 col-lg-12">
    
    <c:choose>
        <c:when test="${not empty requestScope['notifList']}">
            <tr>
                <th class="col-xs-4 col-sm-4 col-md-4 col-lg-4">Nom d'utilisateur</th>
                <th class="col-xs-8 col-sm-8 col-md-8 col-lg-8">Commentaire</th>
            </tr>
        </c:when>
        <c:otherwise>
            <span class="messageAucun"> Aucune notification </span>
        </c:otherwise>
    </c:choose>
    
    <c:forEach var="notif" items="${requestScope['notifList']}" >
            <tr class="info" style="box-shadow: -1px 2px 5px 1px rgba(0, 0, 0, 0.7);" onclick="supprimerNotificationAjax(${notif.getId()});">
                <td class="col-xs-4 col-sm-4 col-md-4 col-lg-4" style="font-weight: bold;">${notif.getCommentaire().getUtilisateur().getIdentifiant()}</td>
                <td class="col-xs-8 col-sm-8 col-md-8 col-lg-8" style="font-weight: bold; white-space:normal; word-wrap: break-word; width: 400px;">${notif.getCommentaire().getContent()}</td>
            </tr>
    </c:forEach> 
</table>